import axios from 'axios'
import request from './request'
import type { User } from '@/types'

export const listWaiters = () =>
  request.get<User[]>('/manager/waiters', { params: { storeId: 1 } })
export const createWaiter = (data: {
  name: string
  phone: string
  pwd: string
}) => axios.post('/api/waiters', data)